import request from '@/utils/request'

const member = {
  list(params) {
    return request.get('/system/myUser/myList', {params});
  },
  get(id) {
    return request.get(`/system/myUser/detail/${id}`);
  },
  add(data) {
    return request.post('/system/myUser/add', data);
  },
  update(data) {
    return request.post('/system/myUser/update', data);
  },
  delete(id) {
    return request.post(`/system/myUser/delete/${id}`);
  },
  searchList(params){
    return request.get('/system/myUser/list', {params});
  },
  getByIdCard(idCard){
    return request.get(`/system/myUser/getInfoByIdCard/${idCard}`);
  }
}

export default member;
